<?php
namespace app\index\controller;

use app\common\model\Orders;
use think\Controller;
use think\Db;

/**
 *  订单页控制器
 * Class Listcontent
 * @package app\index\controller
 */
class Listcontent extends Controller
{
    public function index()
    {
		//获取数据
		$uname = session('user.uname');
//		halt($uname);
		$field = Db::table('shop_order')
			->alias('or')
			->join('shop_order_list ol','ol.consignee = or.consignee')
			->where('or.consignee',"$uname")
			->select();
//		halt($field);
    	return view('',compact('field'));
    }

}
